[NTG-context] \xmlinclusion?

2023-11-09 Thread Hans van der Meer via ntg-context
\xmlinclusion{...}}\crlfreturns the file where the node comes from\blankFollows the test of this claim:\xmlprocessfile{demo}{demo.xml}{}\blank\typefile{demo.xml}\stoptext node TEST xml-inclusion.pdf Description: Adobe PDF document met vriendelijke groet,dr. Hans van der MeerBurgemeester Rijndersla

[NTG-context] Re: Combining python and lua

2023-10-26 Thread Alexandre Christe
ile},  bufferbefore=init,  output={\externalfilterbasefile.out},  readcommand=\typefile,  read=no,] \startbuffer[init] from sympy import * \stopbuffer \starttext \startluacode  local deg2rad = [[  %\startsympy  print(latex(rad(%angleVal%)))  %\stopsympy ]] local calcTrigFunct

[NTG-context] Combining python and lua

2023-10-25 Thread Alexandre Christe
ends on your OS. In mine it's python3 \defineexternalfilter  [pythontyping]  [filtercommand={python3 \externalfilterinputfile \space > \externalfilteroutputfile},  output={\externalfilterbasefile.tex},  cache=yes,  readcommand=\typefile,  spacebefore=medium,  spaceafter=medium] %We copy settings to sa

[NTG-context] Problems with line numbered program listings

2023-10-04 Thread Bruce Horrocks
I'm trying to typeset some program listings with annotations alongside. I've tried both columns and tabulate but both have (different) issues: 1) Plain \typefile won't allow the line numbers to be in the text - they stay in the margin whch I don't want. 2) \typefile using a \definedtyping name

Re: [NTG-context] \typefile not including file and returning success

2023-02-21 Thread Marco Patzer via ntg-context
On Wed, 21 Dec 2022 13:17:15 +0100 Hans Hagen via ntg-context wrote: > The next upload will have: > > \adddefaultsuffix[foo,{},crap] > \adddefaultsuffix[{}] > > \typefile{./crapcrap} > \typefile{crapcrap} > > which someone has to document on the wiki Apologies for

Re: [NTG-context] \typefile not including file and returning success

2022-12-21 Thread Marco Patzer via ntg-context
gt; > \adddefaultsuffix[foo,{},crap] > \adddefaultsuffix[{}] > > \typefile{./crapcrap} > \typefile{crapcrap} Thanks Hans for looking into that. I'll play with it after the next update. > which someone

Re: [NTG-context] \typefile not including file and returning success

2022-12-21 Thread Hans Hagen via ntg-context
On 12/17/2022 6:27 PM, Marco via ntg-context wrote: On Sat, 17 Dec 2022 17:43:48 +0100 Otared Kavian wrote: Thanks for your quick reply. It seems that one can fool ConTeXt into typing a file without suffix by giving the path to that file… That works, I can confirm. \typefile{/Users

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco Patzer via ntg-context
On Sat, 17 Dec 2022 10:41:11 -0800 skyhorse--- via ntg-context wrote: > The context wiki says: > "When no file extension is specified the extension .tex is assumed." It's not on the page for typefile: https://wiki.contextgarden.net/Command/typefile And that surely mak

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread skyhorse--- via ntg-context
ontext wrote: > Hi Marco, > > If I create a file named « bar.txt » then > > \starttext > Nothing to say\dots > > \typefile{bar.txt} > > \stoptext > > gives the correct result. However ConTeXt seems to dislike \typefile{bar} > when the filename has no suff

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco via ntg-context
On Sat, 17 Dec 2022 17:43:48 +0100 Otared Kavian wrote: Thanks for your quick reply. > It seems that one can fool ConTeXt into typing a file without suffix > by giving the path to that file… That works, I can confirm. > \typefile{/Users/kavian/Context/essais/mkiv/bar-bis} Hard-coded

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco Patzer via ntg-context
On Sat, 17 Dec 2022 16:25:01 +0100 Otared Kavian via ntg-context wrote: > If I create a file named « bar.txt » then > > \starttext > Nothing to say\dots > > \typefile{bar.txt} > > \stoptext > > gives the correct result. I can confirm that. > However ConTe

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Otared Kavian via ntg-context
Hi Marco, If I create a file named « bar.txt » then \starttext Nothing to say\dots \typefile{bar.txt} \stoptext gives the correct result. However ConTeXt seems to dislike \typefile{bar} when the filename has no suffix. Best regards : Otared > On 17 Dec 2022, at 16:06, Marco Patzer via

[NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco Patzer via ntg-context
Hi! In the following example the file “bar” is not included: # create file “bar” echo Bar > bar # t.tex \starttext Foo \typefile{bar} \stoptext Then run context --errors='*' t.tex The text “bar” is not included in the PDF, only Foo is. The log file shows: verbatims > fil

[NTG-context] Blank lines discarded when \typing

2021-12-03 Thread Thangalin via ntg-context
{\typebuffer}: \typebuffer[javacode] \type{\typing}: \starttyping try { final var num = stack.pop(); if( num != null ) { stack.push( blah ); } return true; } \stoptyping \type{\typefile}: \typefile{t.java} \stoptext There appear to be two issues. First, \typefile produces what I'd

Re: [NTG-context] adding module to ConTeXt basic installation

2021-11-11 Thread Denis Maier via ntg-context
for i in range(2, n+1): > if i not in multiples: > yield i > multiples.update(range(i*i, n+1, i)) > > print(list(eratosthenes2(100))) > \stopPythonSource > \stoptext > > If the source code is in a file then you can read the file directly with:

Re: [NTG-context] adding module to ConTeXt basic installation

2021-11-06 Thread Bruce Horrocks via ntg-context
i not in multiples: yield i multiples.update(range(i*i, n+1, i)) print(list(eratosthenes2(100))) \stopPythonSource \stoptext If the source code is in a file then you can read the file directly with: \typefile [PythonSource] [ ] {filename.py} If you wanted to typeset your

Re: [NTG-context] getting line numbers

2021-09-04 Thread thierry horsin via ntg-context
uacode io.savedata("test.cpp",buffers.getcontent("MyBuffer")) --os.execute("g++ -o test test.cpp") --os.execute("./test > test.tmp") os.execute("echo done > test.tmp") buffers.assign("MyBuffer",io.loaddata("test.tmp&q

Re: [NTG-context] getting line numbers

2021-09-03 Thread Thierry Horsin via ntg-context
o.savedata("test.cpp",buffers.getcontent("MyBuffer")) > --os.execute("g++ -o test test.cpp") > --os.execute("./test > test.tmp") > os.execute("echo done > test.tmp") > bu

Re: [NTG-context] getting line numbers

2021-09-03 Thread Hans Hagen via ntg-context
ot;g++ -o test test.cpp") --os.execute("./test > test.tmp") os.execute("echo done > test.tmp") buffers.assign("MyBuffer",io.loaddata("test.tmp")) \stopluacode And get: \typebuffer[MyBuffer] Or just: \typefile{test.tmp} \stoptext --

Re: [NTG-context] UTF-8 characters being dropped from typefile

2020-11-11 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 11.11.2020 um 16:37: On 11/11/20 10:08 AM, n...@scorecrow.com wrote: Sorry for this really, really basic question but... I have the following 3 line source file: \starttext \typefile{test-listing.txt} \stoptext Hi Bruce, a MWE that shows your problem would

Re: [NTG-context] UTF-8 characters being dropped from typefile

2020-11-11 Thread Pablo Rodriguez
On 11/11/20 10:08 AM, n...@scorecrow.com wrote: > Sorry for this really, really basic question but... > > I have the following 3 line source file: > > \starttext > \typefile{test-listing.txt} > \stoptext Hi Bruce, a MWE that shows your problem would be: \setupbodyfont

[NTG-context] UTF-8 characters being dropped from typefile

2020-11-11 Thread ntg
Sorry for this really, really basic question but... I have the following 3 line source file: \starttext \typefile{test-listing.txt} \stoptext The file "test-listing.txt" is UTF-8 and includes the character U+25B8 (black right-pointing small triangle) which is being dropped from

[NTG-context] MP background for text typeset by \typefile

2020-11-05 Thread context
Hello, is there a way to draw custom background (via MP) to a text typed by \typefile, which is so long so it spreads over more pages? - I'm asking because I know how to typeset some text via \typefile with: 1. this: \definetyping[Test] [before={\startbackground[background=color

Re: [NTG-context] Filter module for R

2020-06-15 Thread Aditya Mahajan
} \startleftbartext[framecolor=darkgreen, backgroundcolor=lightgreen] \setupalign[flushleft, verytolerant] % range={1,-1} not currently supported % See below for details \typefile[range={1,-1}]{#1} \stopleftbartext} \defineexternalfilter [R] [ filtercommand={R CMD

Re: [NTG-context] Filter module for R

2020-06-15 Thread Fabrice L
re={\blank[quarterline]\startleftbartext}, >after={\stopleftbartext}, > ] > > \define[1]\ShowOutput >{\typeRCODEfile{\externalfilterinputfile} > \startleftbartext[framecolor=darkgreen, backgroundcolor=lightgreen] > \setupalign[flushleft, verytolerant] >

Re: [NTG-context] Filter module for R

2020-06-15 Thread Aditya Mahajan
\startleftbartext[framecolor=darkgreen, backgroundcolor=lightgreen] \setupalign[flushleft, verytolerant] \typefile[range={3,-1}]{#1} \stopleftbartext} \startbuffer[locale] Sys.setlocale(category="LC_ALL", locale="en_US.UTF-8") \stopbuffer \defineexternalfil

Re: [NTG-context] Filter module for R

2020-06-14 Thread Aditya Mahajan
currently supported % See below for details \typefile[range={1,-1}]{#1} \stopleftbartext} \defineexternalfilter [R] [ filtercommand={R CMD BATCH -q --no-timing --save --restore \externalfilterinputfile\space \externalfilteroutputfile}, output=\externalfilterbasefile.out,

[NTG-context] Filter module for R

2020-06-14 Thread Fabrice L
utput=\externalfilterbasefile.out,     directory=output,     readcommand=\typefile,     read=no,     cache=yes,     purge=yes   ]\starttextSome text...\startR[read=yes]   pdf("RPlots/MyHistogram.pdf",5,5)   X <- rnorm(200,mean=10,sd=2)   hist(X, col =  "red3" ,  xlab="Score QI&qu

[NTG-context] Solved: Minimum example of problem getting curly braces printed in METAPOST

2020-04-03 Thread Gerben Wierda
ns[+]{doublefun} > > \stopMPinclusions > > \startMPdefinitions{doublefun} > vardef makeTeXLabel( expr w, h, name) = > show "NAME makeTeXLabel:", name; > save p; picture p ; > save s; string s; > s := "\framed{" & name & "}"; % Curly bra

[NTG-context] Minimum example of problem getting curly braces printed in METAPOST

2020-04-02 Thread Gerben Wierda
save p; picture p ;  save s; string s;  s := "\framed{" & name & "}"; % Curly braces will be missing. I need this to work.  % s := "\type-" & name & "-"; % Curly braces are displayed, but this must become a vbox in the end, so can't use it  show "

Re: [NTG-context] Splitting long floats

2018-10-17 Thread Hans Hagen
\bgroup \insidefloattrue} \unexpanded\def\stopsplittext {\egroup \handledirecttsplit \endgroup} \protect \usemodule[scite] \setupbodyfont[dejavu,8pt] \starttext \splitfloat {\placefigure{some caption}} {\startsplittext \typefile[option=TEX,before=,after=]{oeps.tex

[NTG-context] Splitting long floats

2018-10-17 Thread Henri Menke
that this is intended for tabular material. Is is possible to split other material as well? Cheers, Henri --- \definefloat[listing] \starttext \startplacelisting[title={math.h},location=split] \typefile{/usr/include/math.h} \stopplacelisting \stoptext

Re: [NTG-context] Including part of a program source file

2018-04-21 Thread Alan Braslau
Can't one also use matching strings in the range={,}, (with the command \typefile)? Alan On Sat, 21 Apr 2018 17:29:58 +0200 Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: > The verbatim commands have a range key which let you select parts of > the code, > you can u

Re: [NTG-context] Including part of a program source file

2018-04-21 Thread N. Raghavendra
perfectly, with something like this: \starttext \typefile [range={beg:8e1e0cb9:6524:4a9b:a58e:6610c8bcf156, end:8e1e0cb9:6524:4a9b:a58e:6610c8bcf156}] {../coq/univalence/transport/total_path.v} \typefile [range={beg:8edf79a4:6fe4:4a0c:a1a4:5be2ab413b47, end:8edf79a4:6fe4:

Re: [NTG-context] Problem with Filter Module in latent context beta

2018-04-17 Thread Hans Hagen
{} \protect \StartAditya Leading spaces And some more \StopAditya (1) \typebuffer[Aditya] (2) \typefile{test-temp.tmp} Does what you want but of course it's sort of ugly for a module to do that. What we can do is this which is still ugly but picking up verbatim is always ugly

Re: [NTG-context] Problem with Filter Module in latent context beta

2018-04-16 Thread Hans Hagen
. This is a simplified version of what I use in the filter module:    \unprotect     \def\AnyFilename#1%     {\ctxcommand{getreadfilename("any",".","#1")}}     \def\ProcessFile#1%   {\edef\InputFile{\AnyFilename{#1}}%    \InputFile    \typefile[\InputFile]}

Re: [NTG-context] Problem with Filter Module in latent context beta

2018-04-16 Thread Aditya Mahajan
module: \unprotect \def\AnyFilename#1% {\ctxcommand{getreadfilename("any",".","#1")}} \def\ProcessFile#1% {\edef\InputFile{\AnyFilename{#1}}% \InputFile \typefile[\InputFile]} \protect \starttext \ProcessFile{http://cim

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2018-02-19 Thread Jeong Dal
Dear Wolfgang, I found that the previous run “mtxrun - script font…” cheked the fonts for TeXLive 2017. So I run “setuptex” for ConTeXt standalone and run “mtxrun” again. After that I compiled the same file. The result is that \tt works as Nanum Gothic Coding but \ss still not working. “Nanum

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2018-02-19 Thread Pablo Rodriguez
On 02/19/2018 10:15 PM, Jeong Dal wrote: > Dear Wolfgang, > > Two months ago, you suggested an example for typefile with korean. I > just read it at that time and I try your sample today.  > Although there are Nanum Gothic and Nanum Gothic Coding in my system > font, no output

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2018-02-19 Thread Jeong Dal
Dear Wolfgang, Two months ago, you suggested an example for typefile with korean. I just read it at that time and I try your sample today. Although there are Nanum Gothic and Nanum Gothic Coding in my system font, no output of korean for \ss and \tt. I run ‘mtxrun —script font —reload —force

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Jeong Dal
can handle Korean, Chinese, and Japanese together. I heard that Unfonts are included in TeXLive. If not, you can downloaded it. I hope that you have no problem to compile the follwoing code. Best regards, Dalyoung % \setupbodyfont[unfonts] \starttext %\typefile[C][]{cjk.asy} 한자와 일본어는 어떤가요

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Alan Braslau
On Wed, 06 Dec 2017 23:32:45 +0100 Wolfgang Schuster wrote: > You’re using the command \cornflowerbluein in your setups (probably > for the header or footer) > to change the color of the page number but ConTeXt doesn’t create > individual commands > anymore for

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wolfgang Schuster
Wim Neimeijer 6. Dezember 2017 um 22:30 This is the output ConText gives me, when I use a newer version of ConText, output of run === mtx-context | run 1: luatex

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wim Neimeijer
gt; Thanks for all your input and help, but as said before I don't have the > time to upgrade and than to discover existing things don't work > resulting in a complete new thread to debug these existing things and/or > fix with a new beta installation. > > But that is perhaps not my biggest con

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wim Neimeijer
including some code examples via \typefile (with a bit of text in either Cyrillic, Chinese, Japanese or Korean) could be achieved with a simple local font switch, or setting a regime or via \setuptyping but not on a global level with \definefontsynonym, definefontfallback etc. My fix is to change

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Hans Hagen
On 12/6/2017 7:24 PM, Wim Neimeijer wrote: I disagree, a version from 2016 is not very old. I have a lot of documents using a ConText setup which works with this version of luatex and context. Last week I tried to use the latest beta with my documents and the beta was unable to run my

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Rik Kabel
On 2017-12-06 13:24, Wim Neimeijer wrote: I disagree, a version from 2016 is not very old. I have a lot of documents using a ConText setup which works with this version of luatex and context. Last week I tried to use the latest beta with my documents and the beta was unable to run my

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Pablo Rodriguez
On 12/06/2017 07:24 PM, Wim Neimeijer wrote: > I disagree, a version from 2016 is not very old. I have a lot of > documents using a ConText setup which works with this version > of luatex and context. > > Last week I tried to use the latest beta with my documents and the beta > was unable to run

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wim Neimeijer
I disagree, a version from 2016 is not very old. I have a lot of documents using a ConText setup which works with this version of luatex and context. Last week I tried to use the latest beta with my documents and the beta was unable to run my documents. As it seems it is not backward compatible

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Pablo Rodriguez
On 12/06/2017 06:16 PM, Wim Neimeijer wrote: > @Wolfgang, > > Ran your example (unsure about all these \definefontfamily commands), > but does not work, a lot of errors  > [...] > This is LuaTeX, Version beta-0.89.4 (TeX Live 2016/dev)  > [...] > ConTeXt  ver: 2016.03.13 23:40 MKIV beta  fmt:

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Aditya Mahajan
On Wed, 6 Dec 2017, Wim Neimeijer wrote: @Wolfgang, Ran your example (unsure about all these \definefontfamily commands), but does not work, a lot of errors This is LuaTeX, Version beta-0.89.4 (TeX Live 2016/dev) ConTeXt ver: 2016.03.13 23:40 MKIV beta fmt: 2016.3.23 int: english/english

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wim Neimeijer
@Wolfgang, Ran your example (unsure about all these \definefontfamily commands), but does not work, a lot of errors == mtx-context | warning: no (local) file './context_cjk', proceeding mtx-context | run 1: luatex

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Wolfgang Schuster
Wim Neimeijer 6. Dezember 2017 um 00:32 The thing here is, I am not an ConText expert just an user. I am working on a manual (200+ pages) where including code snippets is just a small part of the document and not something isolated. Not sure what to do next as

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread luigi scarso
On Wed, Dec 6, 2017 at 9:53 AM, Hans Hagen wrote: > On 12/6/2017 12:32 AM, Wim Neimeijer wrote: >> >> The thing here is, I am not an ConText expert just an user. I am working >> on a manual (200+ pages) where including code snippets >> is just a small part of the document and not

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Henning Hraban Ramm
Am 2017-12-06 um 00:32 schrieb Wim Neimeijer : > The thing here is, I am not an ConText expert just an user. I am working on a > manual (200+ pages) where including code snippets > is just a small part of the document and not something isolated. Not sure > what to do next

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-06 Thread Hans Hagen
On 12/6/2017 12:32 AM, Wim Neimeijer wrote: The thing here is, I am not an ConText expert just an user. I am working on a manual (200+ pages) where including code snippets is just a small part of the document and not something isolated. Not sure what to do next as the wiki explains a lot but

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread Wim Neimeijer
, Hans Hagen <pra...@wxs.nl> wrote: > On 12/5/2017 11:10 PM, Wim Neimeijer wrote: > >> I wish it is that simple, but alas, I need to >> to inform \typefile of the font as well, >> possibly via setuptyping ? >> > if you mix scripts you need to either use font that

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread Hans Hagen
On 12/5/2017 11:10 PM, Wim Neimeijer wrote: I wish it is that simple, but alas, I need to to inform \typefile of the font as well, possibly via setuptyping ? if you mix scripts you need to either use font that has the glyphs or you have to create a bodyfint with a combination of fonts ... i'm

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread Wim Neimeijer
I wish it is that simple, but alas, I need to to inform \typefile of the font as well, possibly via setuptyping ? The following works with texlive 2017 (pdflatex), meaning I have the fonts installed. I also ran $ mtxrun --script font --reload \documentclass{article} \usepackage[T1]{fontenc

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread luigi scarso
On Tue, Dec 5, 2017 at 9:32 PM, Wim Neimeijer <wneimei...@gmail.com> wrote: > I am writing a manual where I include code snippets with typefile. Some of > the code snippets contain text in Japanese > but don't appear in the PDF document as typefile seems to skip the Japanese >

[NTG-context] Typefile with Chinese, Korean or Japanase text

2017-12-05 Thread Wim Neimeijer
I am writing a manual where I include code snippets with typefile. Some of the code snippets contain text in Japanese but don't appear in the PDF document as typefile seems to skip the Japanese characters MWE file cjk.asy Label L; L = Label("\\begin{CJK}{UTF8}{gbsn}{\\CJKfamily

Re: [NTG-context] Line numbering broken somehow?

2017-03-30 Thread Procházka Lukáš Ing .
the same name, i.e. \setuplinenumbering[TEX]? And if it finds such numbering style, it will use it? Best regards, Lukas \starttext \typefile[TEX]{\inputfilename} \stoptext Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dum

Re: [NTG-context] Line numbering broken somehow?

2017-03-30 Thread Wolfgang Schuster
yping [TEX] [numbering=line] \starttext \typefile[TEX]{\inputfilename} \stoptext Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy text Dummy tex

Re: [NTG-context] Line numbering broken somehow?

2017-03-30 Thread Procházka Lukáš Ing .
Hello, in the following example line numbering with \typefile works well except the last page - here it doesn't follow the style assigned. What's wrong? Best regards, Lukas \starttext Some text here \page \start \setupinterlinespace[1.8ex] \definefont

[NTG-context] Line numbering broken somehow?

2017-03-28 Thread Procházka Lukáš Ing .
Hello, in the following example line numbering with \typefile works well except the last page - here it doesn't follow the style assigned. What's wrong? Best regards, Lukas \starttext Some text here \page \start \setupinterlinespace[1.8ex] \definefontsize[z

Re: [NTG-context] keep interaction with \insertpages and \filterpages

2017-01-18 Thread Hans Hagen
[1.pdf][page=3,interaction=all]\stopTEXpage \setuplayout[page] \setupexternalfigure[interaction=all] \filterpages[1.pdf][1,2,3] \page \setuplayout[reset] \typefile{1.tex} \stoptext

Re: [NTG-context] Access ConTeXt dimensions in Lua

2016-10-09 Thread Hans Hagen
n... ;) \starttext \startluacode io.savedata("settings.txt", number.topoints(tex.dimen.textwidth)) \stopluacode \typefile{settings.txt} \stoptext - Hans Hagen | PRAGMA ADE

Re: [NTG-context] typebuffer different from typefile

2016-04-24 Thread Meer, Hans van der
The point is not that I am without options for a practical solution here. My point is that the difference between \typebuffer and \typefile breaks the strict and so much appreciated congruence between like macro calls. Therefore my post must rather be seen as a plea to the maintainer(s

Re: [NTG-context] typebuffer different from typefile

2016-04-24 Thread Pablo Rodriguez
ame, because their > usage parallels each other? Hi Hans, I wonder whether any of these two options may help you: \setuptyping[buffer][style=\ttx] \startbuffer[test] content of buffer \stopbuffer \starttext \typebuffer[test][style=\ss\red] \typefile[style=\ttx

[NTG-context] typebuffer different from typefile

2016-04-24 Thread dr. Hans van der Meer
: \startbuffer[test] content of buffer \stopbuffer \starttext \typebuffer[test] \typefile[style=\ttx]{test.txt} \stoptext Hans van der Meer ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Buffer with syntax highlighting

2016-02-17 Thread Hans Hagen
On 2/17/2016 1:16 PM, Procházka Lukáš Ing. wrote: Hello, is it possible to \typebuffer with a syntax highlighting? \typefile allows to specific syntax highlighter, e.g. \typefile[TEX]{file.tex}; \typebuffer does not (AFAIK). It would be useful to have: \startbuffer[demo] \startitemize

[NTG-context] Buffer with syntax highlighting

2016-02-17 Thread Procházka Lukáš Ing .
Hello, is it possible to \typebuffer with a syntax highlighting? \typefile allows to specific syntax highlighter, e.g. \typefile[TEX]{file.tex}; \typebuffer does not (AFAIK). It would be useful to have: \startbuffer[demo] \startitemize \item Hello! \stopitemize \stopbuffer which

Re: [NTG-context] Switching to landscape

2015-12-29 Thread Wolfgang Schuster
If the default "height" is kept, no manual reset is necessary. See this: %\setuplayout[height=277mm] % This value is useful for portrait orientation; try to un/comment \starttext Aaa \page \setuppapersize[A4,landscape] % "Height" should be reset \setuplayo

Re: [NTG-context] Switching to landscape

2015-12-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .
height=277mm] % This value is useful for portrait orientation; try to un/comment \starttext Aaa \page \setuppapersize[A4,landscape] % "Height" should be reset \setuplayout Bbb \typefile{Text.txt} \stoptext Is there a way to "reset" to the default (landscape

Re: [NTG-context] \typefile and width (number of spaces) for '\t'

2015-08-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .
during \typefile command? E.g. 10 spaces... \setuptyping[file][tab=10] Wolfgang -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038

[NTG-context] \typefile and width (number of spaces) for '\t'

2015-08-24 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is there a way to specify width for a tabulator ('\t') being read in a text file during \typefile command? E.g. 10 spaces... Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz Bezová 1658 147 14

Re: [NTG-context] \typefile and width (number of spaces) for '\t'

2015-08-24 Thread Wolfgang Schuster
Procházka Lukáš Ing. - Pontex s. r. o. mailto:l...@pontex.cz 24. August 2015 13:30 Hello, is there a way to specify width for a tabulator ('\t') being read in a text file during \typefile command? E.g. 10 spaces... \setuptyping[file][tab=10] Wolfgang

Re: [NTG-context] Asymptote in Context

2015-01-02 Thread Context NTG
in the final docuement. \defineexternalfilter [ASY] [filtercommand={asy -tex context -View -outformat pdf -outname \externalfilteroutputfile\space \externalfilterinputfile}, output=\externalfilterbasefile.out, readcommand=\typefile, cache=force, location=text, continue=yes] \starttext \startASY

[NTG-context] Asymptote in Context

2014-12-08 Thread context context
] [filtercommand={asy -tex context -View -outformat pdf -outname \externalfilteroutputfile\space \externalfilterinputfile}, output=\externalfilterbasefile.out, readcommand=\typefile, cache=force, location=text, continue=yes] \starttext \startASY[myplot] draw((1,1)--(2,4)); \stopASY \externalfigure

[NTG-context] luatex lunatic

2013-12-18 Thread DesdeChaves
=\externalfilterbasefile.out, directory=output, readcommand=\typefile, read=no, cache=yes, ] Jorge ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

Re: [NTG-context] luatex lunatic

2013-12-18 Thread Hans Hagen
, readcommand=\typefile, read=no, cache=yes, ] Jorge ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman

Re: [NTG-context] luatex lunatic

2013-12-18 Thread luigi scarso
--restore \externalfilterinputfile\space \externalfilteroutputfile}, output=\externalfilterbasefile.out, directory=output, readcommand=\typefile, read=no, cache=yes, ] Jorge I'm sorry to say that I cannot help you with luatex lunatic, luatex 0.42 is too old

Re: [NTG-context] luatex lunatic

2013-12-18 Thread Alan Braslau
\externalfilteroutputfile}, output=\externalfilterbasefile.out, directory=output, readcommand=\typefile, read=no, cache=yes, ] Jorge -- Alan Braslau CEA DSM-IRAMIS-SPEC CNRS URA 2464 Orme des Merisiers 91191 Gif-sur-Yvette cedex FRANCE tel: +33 1 69 08 73 15 fax: +33 1 69 08 87

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-31 Thread john Culleton
is no frame around the text and there is no caption. Hi, this works here: --8---cut here---start-8--- \starttext \startbuffer[ex1] \typefile[]{test.tex} \stopbuffer \placefigure[here][fig:ex1] {Example 1} {\framed{\externalfigure[ex1

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-31 Thread Wolfgang Schuster
the content to the given width. You can get the same effect with the \scale command, another way is to change the font size for the verbatim block with \typefile[bodyfont=small]{filename} or \typefile[bodyfont=8pt]{filename}. Wolfgang

[NTG-context] Inserting verbatim text in a figure and framed.

2013-07-30 Thread john Culleton
Here is my code so far. I want to show a file in verbatim form. It compiles but here is no frame around the text and there is no caption. \startbuffer[ex1] \typefile[]{example1.tex} \stopbuffer \placefigure[here][fig:ex1] {Example 1} {\externalfigure[ex1.buffer][width

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-30 Thread Peter Münster
] \typefile[]{test.tex} \stopbuffer \placefigure[here][fig:ex1] {Example 1} {\framed{\externalfigure[ex1.buffer][width=.75\textwidth]}} \stoptext --8---cut here---end---8--- ConTeXt version: 2013.05.28 00:36 -- Peter

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-30 Thread Wolfgang Schuster
---cut here---start-8--- \starttext \startbuffer[ex1] \typefile[]{test.tex} \stopbuffer \placefigure[here][fig:ex1] {Example 1} {\framed{\externalfigure[ex1.buffer][width=.75\textwidth]}} \stoptext --8---cut here---end---8--- Why do

Re: [NTG-context] Inserting verbatim text in a figure and framed.

2013-07-30 Thread Peter Münster
On Tue, Jul 30 2013, Wolfgang Schuster wrote: Am 30.07.2013 um 21:30 schrieb Peter Münster pmli...@free.fr: \startbuffer[ex1] \typefile[]{test.tex} \stopbuffer Why do you use a buffer? Copy + paste ... ;) (brain was somewhere else... ;) -- Peter

[NTG-context] Does the R-Module work (or how)?

2013-06-18 Thread Erik Margraf
([[#1 ]])} \stopR #-\doifmode {*\v!first }\runR \typefile {\Rfile .out} l.20 \stopR -- I'm using: OS: Debian 7.0 64Bit context --version: mtx-context | current version

Re: [NTG-context] Does the R-Module work (or how)?

2013-06-18 Thread Aditya Mahajan
--ifchanged=\Rfile \space --direct R CMD BATCH -q --save --restore \ \executesystemcommand #1x-\ctxlua {os.execute([[#1 ]])} \stopR #-\doifmode {*\v!first }\runR \typefile

Re: [NTG-context] verbatim boxes

2012-11-26 Thread Wolfgang Schuster
\typefile[framedfile]{knuth.tex} \stoptext To store text and reuse it buffers are the best tool: \startbuffer[ward] The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence

Re: [NTG-context] typefile with absolute path to file

2012-11-21 Thread Hans Hagen
On 11/20/2012 11:17 PM, Aditya Mahajan wrote: On my machine, I can read files **with an extension** from anywhere in the system, but \typefile{...} for a file without an extension results in: verbatimsfile abc does not exist ah .. but it makes sense to be explicit in what you want

Re: [NTG-context] typefile with absolute path to file

2012-11-21 Thread Sietse Brouwer
I think he means files of which the name does not have an extension. I.e. he is trying to type a file called 'xxx', not 'xxx.something'. Example of such a file: the shell script /usr/bin/ps2pdf. Cheers, --Sietse ___ If

Re: [NTG-context] typefile with absolute path to file

2012-11-21 Thread Hans Hagen
On 11/21/2012 11:18 AM, Sietse Brouwer wrote: I think he means files of which the name does not have an extension. I.e. he is trying to type a file called 'xxx', not 'xxx.something'. Example of such a file: the shell script /usr/bin/ps2pdf. hopefully fixed in next upload .. btw, testing can

[NTG-context] typefile with absolute path to file

2012-11-20 Thread Erik Margraf
Dear List, a question about \typefile{}. I tried to use \typefile{ /with/an/absolute/path/to/some_file } and failed Message in the log: Verbatim some_file not found. Also tried with no path at all, assuming it will take the file from the current directory. Same result. Do I miss something

Re: [NTG-context] typefile with absolute path to file

2012-11-20 Thread Aditya Mahajan
Dear List, a question about \typefile{}. I tried to use \typefile{ /with/an/absolute/path/to/some_file } and failed Message in the log: Verbatim some_file not found. Also tried with no path at all, assuming it will take the file from the current directory. Same result. Do I miss something

Re: [NTG-context] typefile with absolute path to file

2012-11-20 Thread Erik Margraf
Hi, Thanks Aditya! I tried this again with \starttext \typefile{/tmp/xxx.tex} \stoptext and could trace what's going on ... (not even /tmp/xxx.tex worked) The lines below is the trace output belonging to /tmp/xxx stat(tmp/xxx.tex, 0x7fff5dc73d90) = -1 ENOENT (No such file or directory

Re: [NTG-context] typefile with absolute path to file

2012-11-20 Thread Hans Hagen
On 11/20/2012 9:06 PM, Erik Margraf wrote: Hi, Thanks Aditya! I tried this again with \starttext \typefile{/tmp/xxx.tex} \stoptext and could trace what's going on ... (not even /tmp/xxx.tex worked) I just tried a standalone on a xubuntu virtual machine. I had no problems with /data

Re: [NTG-context] typefile with absolute path to file

2012-11-20 Thread Aditya Mahajan
On Tue, 20 Nov 2012, Hans Hagen wrote: On 11/20/2012 9:06 PM, Erik Margraf wrote: Hi, Thanks Aditya! I tried this again with \starttext \typefile{/tmp/xxx.tex} \stoptext and could trace what's going on ... (not even /tmp/xxx.tex worked) I just tried a standalone on a xubuntu virtual

  1   2   3   >